/*! \file mem_allocator.cpp
 *	\brief 
 *
 *	created:	2009/11/20
 *	created:	20:11:2009   18:35
 *	filename: 	o:\main\libs\mem\mem_allocator.cpp
 *	file path:	o:\main\libs\mem
 *	file base:	mem_allocator
 *	file ext:	cpp
 *	author:		Vitalii Trubchaninov
 *				venngraydog@gmail.com
 */
 
#include "mem/stdafx.h"
#include "mem/mem_allocator.h"

#if TT_MEM_ENABLED

#include "mem/impl/provider.h"

namespace tt{
namespace mem{
namespace impl{

#if TT_MEM_PROFILING

MEM_API BlockInfo* active_section()
{
	return g_provider().active_section();
}

MEM_API void register_allocate(BlockInfo* block_info, std::size_t __size )
{
	return g_provider().register_new(block_info, __size);
}

MEM_API void register_deallocate(BlockInfo* block_info, std::size_t __size)
{
	return g_provider().register_delete(block_info, __size);
}

#endif //TT_MEM_PROFILING

} //impl
} //mem
} //namespace tt

#endif //TT_MEM_ENABLED
